Skip to content

Conversation

@karthik2804
Copy link
Contributor

This PR enables users to set a SPIN_PLUGIN_AUTH_HEADER environment variable that will then be set on the outgoing request. For example, the header would have a value like token <gh_token> to get a plugin from a private repo.

If this would be better served as a flag like `spin plugins install <secret_plugin> --auth-header "token <gh_token>", I would be happy to update this PR.

Copy link
Collaborator

@rylev rylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd personally prefer this as a CLI option over a header which is way more discoverable.

Copy link
Collaborator

@michelleN michelleN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to Ryan's flag suggestion 👍

@karthik2804 karthik2804 force-pushed the allow_private_plugins branch from 8d0bd82 to 7e4e060 Compare October 28, 2024 09:01
@karthik2804
Copy link
Contributor Author

updated the PR to use a cli flag.

@karthik2804 karthik2804 force-pushed the allow_private_plugins branch from 7e4e060 to 0904173 Compare October 28, 2024 09:33
@itowlson
Copy link
Collaborator

The second commit message says "use cli flag along with env var" but I think it actually removes the env var. Would it be worth rewording the commit message not to imply that the env var is still meant to work?

@karthik2804
Copy link
Contributor Author

@itowlson I will address the changes and squash the PR with the commit changes as well.

@karthik2804 karthik2804 force-pushed the allow_private_plugins branch from 0904173 to d29ad4c Compare October 28, 2024 19:45
@karthik2804
Copy link
Contributor Author

I believe the failing CI is unrelated to the changes here.

@itowlson itowlson merged commit c2c1c8b into spinframework:main Oct 29, 2024
17 checks passed
@karthik2804 karthik2804 deleted the allow_private_plugins branch November 10, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants